home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIEditorMailSupport.idl < prev    next >
Text File  |  2006-05-08  |  4KB  |  115 lines

  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2002
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Akkana Peck <akkana@netscape.com>
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  27.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. #include "nsISupports.idl"
  40.  
  41. interface nsISupportsArray;
  42. interface nsIDOMNode;
  43.  
  44. [scriptable, uuid(fdf23301-4a94-11d3-9ce4-9960496c41bc)]
  45.  
  46. interface nsIEditorMailSupport : nsISupports
  47. {
  48.   /** Paste the text in the OS clipboard at the cursor position,
  49.     * as a quotation (whose representation is dependant on the editor type),
  50.     * replacing the selected text (if any).
  51.     * @param aSelectionType Text or html?
  52.     */
  53.   void pasteAsQuotation(in long aSelectionType);
  54.  
  55.   /** Insert a string as quoted text
  56.     * (whose representation is dependant on the editor type),
  57.     * replacing the selected text (if any).
  58.     * @param aQuotedText  The actual text to be quoted
  59.     * @return             The node which was inserted
  60.     */
  61.   nsIDOMNode insertAsQuotation(in AString aQuotedText);
  62.  
  63.   /**
  64.    * Inserts a plaintext string at the current location,
  65.    * with special processing for lines beginning with ">",
  66.    * which will be treated as mail quotes and inserted
  67.    * as plaintext quoted blocks.
  68.    * If the selection is not collapsed, the selection is deleted
  69.    * and the insertion takes place at the resulting collapsed selection.
  70.    *
  71.    * @param aString   the string to be inserted
  72.    */
  73.    void insertTextWithQuotations(in DOMString aStringToInsert);
  74.  
  75.   /** Paste a string as quoted text,
  76.     * whose representation is dependant on the editor type,
  77.     * replacing the selected text (if any)
  78.     * @param aCitation    The "mid" URL of the source message
  79.     * @param aSelectionType Text or html?
  80.     */
  81.   void pasteAsCitedQuotation(in AString aCitation,
  82.                              in long aSelectionType);
  83.  
  84.   /** Insert a string as quoted text
  85.     * (whose representation is dependant on the editor type),
  86.     * replacing the selected text (if any),
  87.     * including, if possible, a "cite" attribute.
  88.     * @param aQuotedText  The actual text to be quoted
  89.     * @param aCitation    The "mid" URL of the source message
  90.     * @param aInsertHTML  Insert as html?  (vs plaintext)
  91.     * @return             The node which was inserted
  92.     */
  93.   nsIDOMNode insertAsCitedQuotation(in AString aQuotedText,
  94.                                     in AString aCitation,
  95.                                     in boolean aInsertHTML);
  96.  
  97.   /**
  98.    * Rewrap the selected part of the document, re-quoting if necessary.
  99.    * @param aRespectNewlines  Try to maintain newlines in the original?
  100.    */
  101.   void rewrap(in boolean aRespectNewlines);
  102.  
  103.   /**
  104.    * Strip any citations in the selected part of the document.
  105.    */
  106.   void stripCites();
  107.  
  108.  
  109.   /**
  110.    * Get a list of IMG and OBJECT tags in the current document.
  111.    */
  112.   nsISupportsArray getEmbeddedObjects();
  113. };
  114.  
  115.